// API进行统一管理
import request from "./request"
import qs from "qs"
// export const JingpingAPI = () => request.get("/products/recommend");
export const SendSMSAPI = (params) => request.post("/sendSMS", qs.stringify(params))
export const phoneReginAPI=(params)=>request.post("/phoneRegin",qs.stringify(params))
export const  PCLoginAPI=(params)=>request.post("/wechatUsers/PCLogin",qs.stringify(params))
// 获取用户信息
export const userProfilesAPI=()=>request.get("/shop/userProfiles")

// 首页精品推荐请求
export const JingpinAPI = () => request.get("/products/recommend");
// 请求热门兑换的数据
export const RemenAPI = () => request.get("/products/hot");
// 请求详情页数据
export const  ProductsAPI=(id)=>request.get(`/products/${id}`)